import pyhk

class test:
    def __init__(self):
        self.data =0
    def fun(self):            
            self.data += 1
            print self.data

#create pyhk class instance    
hot = pyhk.pyhk()

#initiate test class
t = test()

#add hotkey
hot.addHotkey(['Ctrl', 'Alt','7'],t.fun)

#start looking for hotkey.
hot.start()
